package com.fyy.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author fyy
 * @Description
 * @Date 2020/7/7 14:59
 */
@RestController
public class ConfigController {

    @Value("${server.port}")
    private String port;

    @GetMapping("/config")
    public String getConfig(){
        return "服务在端口：" + port + "启动！";
    }

}
